package com.chalk.ro;

import com.chalk.model.SysRole;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @date: 2019-03-28 上午 12:37
 * @author: zhaobo0119@outlook.com
 * @Descriptopn:
 */
public class SysRoleRo extends SysRole {
    /**
     * 主键
     */
    @ApiModelProperty(name = "roleId", value = "主键")
    private String roleId;

    /**
     * 名称
     */
    @ApiModelProperty(name = "name", value = "名称")
    @NotEmpty(message = "名称不可为空")
    private String name;

    /**
     * 描述
     */
    @ApiModelProperty(name = "description", value = "描述")
    @NotEmpty(message = "描述不可为空")
    private String description;


    /**
     * 操作人id（根据操作人类型会对应不同的表记录）
     */
    @ApiModelProperty(name = "operatorId", value = "操作人id（根据操作人类型会对应不同的表记录）")
    private String operatorId;

    /**
     * 是否已删除（逻辑删除，1、已删除，0、未删除，默认0）
     */
    @ApiModelProperty(name = "status", value = "是否可用(0:可用 1:不可用)")
    @NotNull(message = "是否可用不可为空")
    private Integer status;

    @Override
    public String getRoleId() {
        return roleId;
    }

    @Override
    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getDescription() {
        return description;
    }

    @Override
    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String getOperatorId() {
        return operatorId;
    }

    @Override
    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId;
    }

    @Override
    public Integer getStatus() {
        return status;
    }

    @Override
    public void setStatus(Integer status) {
        this.status = status;
    }
}
